.login {
	width: 100vw;
	height: 100vh;
	// background: url('/public/bgimg/bg.png');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	position: fixed;

	.login-bg {
		width: 250px;
		padding: 10px 20px;
		border-radius: 8px;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
		background: rgba(255, 255, 255, 0.2);
		margin: 100px auto;

		h2 {
			margin-bottom: 10px;
			text-align: center;
		}

		.login-btn {
			background: linear-gradient(to left, skyblue, pink);
			border: none;
		}

		.login-btn:hover {
			background: linear-gradient(to right, skyblue, pink);
			color: #fff;
		}
	}

	// 响应式适配
	// 中等屏幕 (768px - 1199px)
	@media screen and (max-width: 1199px) and (min-width: 768px) {
		.login-bg {
			width: 220px;
			padding: 8px 16px;
			margin: 80px auto;
		}
	}

	// 小屏幕 (480px - 767px)
	@media screen and (max-width: 767px) and (min-width: 480px) {
		.login-bg {
			width: 200px;
			padding: 6px 12px;
			margin: 60px auto;
		}

		h2 {
			font-size: 18px;
		}
	}

	// 超小屏幕 (480px以下)
	@media screen and (max-width: 479px) {
		.login-bg {
			width: 180px;
			padding: 4px 8px;
			margin: 40px auto;
		}

		h2 {
			font-size: 16px;
			margin-bottom: 8px;
		}
	}

	// 横屏适配
	@media screen and (orientation: landscape) and (max-height: 600px) {
		.login-bg {
			margin: 20px auto;
		}
	}
}